﻿from google.appengine.api import memcache

def setEnLanguage():
	menu_language = {'home':'Home','event':'Event','players':'Players','class':'Class','overview':'Overview','admin':'Admin'}
	admin_language = {'site_config':'Site Config','events_manage':'Events Manage','player_manage':'Players Eanage','create_event':'Create Event','import_event':'import event','import_dkp':'import dkp'}
	table_language = {'number':'no.','id':'id','title':'title','author':'author','date':'date','generate':'generate','members':'members','gender':'gender','level':'level','guild':'guild','next':'NEXT','prev':'PREV'}
	player_table_language = {'class':'class','race':'race','attend':'attend','earn':'earn','adjust':'adjust','reward':'reward','punish':'punish','cost':'cost','current':'current','gear':'gear'}
	action_language = {'event_members':'Event Members','event_actions':'Event Actions','event_reward':'Event Reward','event_punish':'Event Punish','event_loot':'Event Loots','summary':'Summary','realm':'Realm','start':'Start','end':'End','duration':'Duration','total':'Total','score':'Score','num':'Num'}
	form_language = {'submit':'Submit','edit':'edit','delete':'delete','add':'add','choose_members':'Choose Members','add_actions':'Add Actions','add_reward':'Add Reward','add_punish':'Add Punish','add_loot':'Add Loot','event_title':'Event Title','event_summary':'Event Summary','event_content':'Event XML','action_title':'Action Title','action_score':'Action Score','action_summary':'Action Summary'}
	class_language = {'warlock':'Warlock','priest':'Priest','mage':'Mage','druid':'Druid','rogue':'Rogue','shaman':'Shaman','hunter':'Hunter','paladin':'Paladin','warrior':'Warrior','deathknight':'Death Knight'}
	race_language = {'human':'Human','gnome':'Gnome','draenei':'Draenei','nightelf':'NightElf','dwarf':'Dwarf','orc':'Orc','undead':'Undead','troll':'Troll','tauren':'Tauren','bloodelf':'BloodElf'}
	sidemenu_language = {'site_config':'Site Config','event_manage':'Event Manage','create_event':'Create Event','player_manage':'Player Manage','import_event':'Import Event','import_dkp':'Import DKP'}
	player_edit_language = {'player_name':'Charactor Name','player_guild':'Charactor Guild','player_level':'Charactor Level','adjust_score':'Adjust Score','player_gender':'Charactor Gender','player_race':'Charactor Race','player_class':'Charactor Class','girl':'Girl','boy':'Boy'}
	site_config_language = {'site_name':'Site Name','site_summary':'Site Summary','dkp_manager':'Dkp Manager','site_language':'Site Language'}
	gear_quality_language = {'poor':'Poor','common':'Common','uncommon':'Uncommon','rare':'Rare','epic':'Epic','legendary':'Legendary','heirloom':'Heirloom'}
	gear_form_language = {'gear_name':'Gear Name','gear_id':'Gear ID','gear_icon':'Gear Icon','gear_count':'Gear Count','gear_cost':'Gear Cost','gear_color':'Gear Quanlity','gear_owner':'Gear Owner'}
	
	forum_index_lang = {'forum_index_lang_title':'Title','forum_index_lang_author':'Author','forum_index_lang_reply':'Reply','forum_index_lang_latest_reply':'Latest Reply'}
	forum_sider_lang = {'forum_sider_lang_signout':'Sign Out','forum_sider_lang_signin':'Sign In','forum_sider_lang_home':'Forum','forum_sider_lang_register':'Register','forum_sider_lang_create_topic':'Create Topic','forum_sider_lang_member_info':'Member Info'}
	forum_pagin_lang = {'forum_pagin_lang_next':'Next','forum_pagin_lang_prev':'Prev'}
	forum_view_lang = {'forum_view_lang_delete':'Delete','forum_view_lang_edit':'Edit','forum_view_lang_by':'By','forum_view_lang_from':'From','forum_view_lang_submit':'Submit'}
	forum_memberinfo_lang = {'forum_memberinfo_lang_username':'Username','forum_memberinfo_lang_homepage':'Homepage','forum_memberinfo_lang_email':'E-mail','forum_memberinfo_lang_gender':'Gender','forum_memberinfo_lang_summary':'Summary','forum_memberinfo_lang_player':'Player','forum_memberinfo_lang_submit':'Submit'}
	forum_createtopic_lang = {'forum_createtopic_lang_topic_title':'Topic Title','forum_createtopic_lang_topic_content':'Topic Content','forum_createtopic_lang_submit':'Submit'}
	forum_menu = {'forum_menu_home':'Home','forum_menu_dkp':'DKP','forum_menu_help':'Help','forum_menu_admin':'Admin'}
	forum_second_menu = {'forum_second_menu_dhelp':'DKP Help','forum_second_menu_fhelp':'Forum Help','forum_second_menu_topic':'Topic','forum_second_menu_setting':'Settings','forum_second_menu_players':'Players','forum_second_menu_class':'Class','forum_second_menu_overview':'Overview','forum_second_menu_events':'Events'}

	memcache.set_multi(menu_language, key_prefix='ca_')
	memcache.set_multi(admin_language, key_prefix='ca_')
	memcache.set_multi(table_language, key_prefix='ca_')
	memcache.set_multi(player_table_language, key_prefix='ca_')
	memcache.set_multi(action_language, key_prefix='ca_')
	memcache.set_multi(form_language, key_prefix='ca_')
	memcache.set_multi(class_language, key_prefix='ca_')
	memcache.set_multi(race_language, key_prefix='ca_')
	memcache.set_multi(sidemenu_language, key_prefix='ca_')
	memcache.set_multi(player_edit_language, key_prefix='ca_')
	memcache.set_multi(site_config_language, key_prefix='ca_')
	memcache.set_multi(gear_quality_language, key_prefix='ca_')
	memcache.set_multi(gear_form_language, key_prefix='ca_')
	
	memcache.set_multi(forum_index_lang, key_prefix='fa_')
	memcache.set_multi(forum_sider_lang, key_prefix='fa_')
	memcache.set_multi(forum_pagin_lang , key_prefix='fa_')
	memcache.set_multi(forum_view_lang, key_prefix='fa_')
	memcache.set_multi(forum_memberinfo_lang, key_prefix='fa_')
	memcache.set_multi(forum_createtopic_lang, key_prefix='fa_')
	memcache.set_multi(forum_menu, key_prefix='fa_')

def setCnLanguage():
	menu_language = {'home':'论坛首页','event':'活动','players':'玩家','class':'职业','overview':'总览','admin':'管理'}
	admin_language = {'site_config':'站点设置','events_manage':'活动管理','player_manage':'玩家管理','create_event':'创建事件','import_event':'导入事件','import_dkp':'导入DKP'}
	table_language = {'number':'序列','id':'编号','title':'标题','author':'创建者','date':'时间','generate':'生成','members':'成员','gender':'性别','level':'等级','guild':'工会','next':'下一页','prev':'前一页'}
	player_table_language = {'race':'种族','attend':'出勤','earn':'获得','adjust':'调整','reward':'奖励','punish':'惩罚','cost':'花费','current':'当前','gear':'装备'}
	action_language = {'event_members':'活动成员','event_actions':'事件活动','event_reward':'奖励','event_punish':'惩罚','event_loot':'装备掉落','summary':'说明','realm':'服务器','start':'开始','end':'结束','duration':'活动时间','total':'总计','score':'分数','num':'人数'}
	form_language = {'submit':'提交','edit':'编辑','delete':'删除','add':'添加','choose_members':'选择成员','add_actions':'添加活动','add_reward':'添加奖励','add_punish':'添加惩罚','add_loot':'添加掉落','event_title':'事件标题','event_summary':'事件说明','event_content':'事件XML','action_title':'标题','action_score':'分数','action_summary':'说明'}
	class_language = {'warlock':'术士','priest':'牧师','mage':'法师','druid':'德鲁伊','rogue':'潜行者','shaman':'萨满','hunter':'猎人','paladin':'圣骑士','warrior':'战士','deathknight':'死亡骑士'}
	race_language = {'human':'人类','gnome':'侏儒','draenei':'德莱尼人','nightelf':'暗夜精灵','dwarf':'矮人','orc':'兽人','undead':'亡灵','troll':'巨魔','tauren':'牛头人','bloodelf':'血精灵'}
	sidemenu_language = {'site_config':'站点设置','event_manage':'管理事件','create_event':'手动创建','player_manage':'玩家管理','import_event':'导入事件','import_dkp':'导入DKP'}
	player_edit_language = {'player_name':'人物名字','player_guild':'所属工会','player_level':'人物等级','adjust_score':'调整分数','player_gender':'人物性别','player_race':'人物种族','player_class':'人物职业','girl':'女','boy':'男'}
	site_config_language = {'site_name':'站点名称','site_summary':'站点说明','dkp_manager':'DKP管理员','site_language':'站点语言'}
	gear_quality_language = {'poor':'粗糙','common':'普通','uncommon':'优秀','rare':'精良','epic':'史诗','legendary':'传说','heirloom':'地狱'}
	gear_form_language = {'gear_name':'物品名称','gear_id':'物品编号','gear_icon':'物品图标','gear_count':'物品数量','gear_cost':'物品分数','gear_color':'物品品质','gear_owner':'物品获得者'}
	
	forum_index_lang = {'forum_index_lang_title':'话题','forum_index_lang_author':'作者','forum_index_lang_reply':'回复','forum_index_lang_latest_reply':'最新回复'}
	forum_sider_lang = {'forum_sider_lang_signout':'离开','forum_sider_lang_signin':'登入','forum_sider_lang_home':'首页','forum_sider_lang_register':'注册','forum_sider_lang_create_topic':'创建话题','forum_sider_lang_member_info':'用户信息'}
	forum_pagin_lang = {'forum_pagin_lang_next':'下一页','forum_pagin_lang_prev':'前一页'}
	forum_view_lang = {'forum_view_lang_delete':'删除','forum_view_lang_edit':'编辑','forum_view_lang_by':'By','forum_view_lang_from':'来自','forum_view_lang_submit':'提交'}
	forum_memberinfo_lang = {'forum_memberinfo_lang_username':'用户名','forum_memberinfo_lang_homepage':'主页','forum_memberinfo_lang_email':'电子邮件','forum_memberinfo_lang_gender':'性别','forum_memberinfo_lang_summary':'摘要','forum_memberinfo_lang_player':'游戏人物','forum_memberinfo_lang_submit':'提交'}
	forum_createtopic_lang = {'forum_createtopic_lang_topic_title':'标题','forum_createtopic_lang_topic_content':'内容','forum_createtopic_lang_submit':'提交'}
	forum_menu = {'forum_menu_home':'首页','forum_menu_dkp':'DKP','forum_menu_help':'帮助','forum_menu_admin':'管理'}
	forum_second_menu = {'forum_second_menu_dhelp':'DKP帮助','forum_second_menu_fhelp':'论坛帮助','forum_second_menu_topic':'话题','forum_second_menu_setting':'设置','forum_second_menu_players':'玩家','forum_second_menu_class':'职业','forum_second_menu_overview':'总览','forum_second_menu_events':'活动'}
	
	memcache.set_multi(menu_language, key_prefix='ca_')
	memcache.set_multi(admin_language, key_prefix='ca_')
	memcache.set_multi(table_language, key_prefix='ca_')
	memcache.set_multi(player_table_language, key_prefix='ca_')
	memcache.set_multi(action_language, key_prefix='ca_')
	memcache.set_multi(form_language, key_prefix='ca_')
	memcache.set_multi(class_language, key_prefix='ca_')
	memcache.set_multi(race_language, key_prefix='ca_')
	memcache.set_multi(sidemenu_language, key_prefix='ca_')
	memcache.set_multi(player_edit_language, key_prefix='ca_')
	memcache.set_multi(site_config_language, key_prefix='ca_')
	memcache.set_multi(gear_quality_language, key_prefix='ca_')
	memcache.set_multi(gear_form_language, key_prefix='ca_')
	
	memcache.set_multi(forum_index_lang, key_prefix='fa_')
	memcache.set_multi(forum_sider_lang, key_prefix='fa_')
	memcache.set_multi(forum_pagin_lang , key_prefix='fa_')
	memcache.set_multi(forum_view_lang, key_prefix='fa_')
	memcache.set_multi(forum_memberinfo_lang, key_prefix='fa_')
	memcache.set_multi(forum_createtopic_lang, key_prefix='fa_')
	memcache.set_multi(forum_menu, key_prefix='fa_')
	memcache.set_multi(forum_second_menu, key_prefix='fa_')